﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Barbar.Colonization.Model.RuleSets {
  [XmlType(Namespace = Constants.XmlRootNamespace, TypeName = "BonusType")]
  public class XmlBonusType {
    private XmlRawMaterialTypeRef m_RawMaterialTypeRef;
    private int m_AccesibleBonus;
    private int m_Bonus;
    private BonusOperationType m_BonusOperationType;

    public XmlRawMaterialTypeRef RawMaterialTypeRef {
      get { return m_RawMaterialTypeRef; }
      set { m_RawMaterialTypeRef = value; }
    }

    public int AccesibleBonus {
      get { return m_AccesibleBonus; }
      set { m_AccesibleBonus = value; }
    }

    public int Bonus {
      get { return m_Bonus; }
      set { m_Bonus = value; }
    }

    public BonusOperationType BonusOperationType {
      get { return m_BonusOperationType; }
      set { m_BonusOperationType = value; }
    }
  }
}
